Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

switch everything to node and dont use O_NONBLOCK #25

Merged
merged 44 commits into from
Jun 8, 2024

Conversation

jackyzha0
Copy link
Member

what changed

  • build for m1
  • switch from rustix to nix crate for better platform compat
  • make tests more robust

@jackyzha0 jackyzha0 changed the title switch everything to node switch everything to node and dont use O_NONBLOCK Jun 6, 2024
Cargo.toml Outdated
@@ -12,8 +12,7 @@ libc = "0.2.152"
# Default enable napi4 feature, see https://nodejs.org/api/n-api.html#node-api-version-matrix
napi = { version = "2.12.2", default-features = false, features = ["napi4"] }
napi-derive = "2.12.2"
rustix = { version = "0.38.30", features = ["event"] }
rustix-openpty = "0.1.1"
nix = { version = "0.29.0", features = ["fs", "term"] }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

src/lib.rs Outdated Show resolved Hide resolved
tests/index.test.ts Show resolved Hide resolved
Copy link
Member

@szymonkaliski szymonkaliski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks great to me, thanks for iterating on this @jackyzha0 -- I'll defer approving to @lhchavez though

.replit Outdated Show resolved Hide resolved
README.md Show resolved Hide resolved
index.d.ts Outdated Show resolved Hide resolved
src/lib.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@lhchavez lhchavez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

src/lib.rs Show resolved Hide resolved
src/lib.rs Show resolved Hide resolved
tests/index.test.ts Show resolved Hide resolved
tsup.config.ts Show resolved Hide resolved
wrapper.ts Show resolved Hide resolved
@jackyzha0 jackyzha0 merged commit e5e7c6f into main Jun 8, 2024
4 checks passed
@jackyzha0 jackyzha0 deleted the jackyzha0/switch-to-node branch June 8, 2024 01:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants